<div class="wrapper wrapper-content animated fadeInRight">
    <!-- PAGE CONTENT BEGINS -->
    <div class="row">
        <div class="col-xs-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>搜索</h5>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="table-responsive">
                            <form class="form-search" method="get" action="<?=url('job.resume/index')?>" role="form">
                                <table>
                                    <tr>
                                        <td>
                                            <input id="username" type="text" name="username"  value="<?=input('get.username')?>" placeholder="请单击选择会员"  class="form-control"/>
                                            <input type="hidden" value="<?=$search['user_id']?>" name="user_id" id="user_id">
                                            <button id="show-btn1" style="display: none" type="button" mini="load" w="95%" h="95%" href="<?=url('miniapp/user.user/select')?>" class="btn btn-w-m btn-info">选择酒店</button>
                                            <script>
                                                $("#username").focus(function () {
                                                    $("#show-btn1").click();
                                                })
                                                function seleUser(user_name,user_id){
                                                    layer.closeAll();
                                                    layer.msg('操作成功！');
                                                    $("#username").val(user_name);
                                                    $("#user_id").val(user_id);
                                                }
                                            </script>
                                        </td>
                                        <td>
                                            <div class="input-group">
                                                <button type="submit" style="margin-top: 10%"
                                                        class="btn form-control btn-sm btn-primary">
                                                    搜索
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xs-12">
            <div class="ibox-content">
                <div class="row">
                    <div class="table-responsive">
                        <table id="simple-table" class="table table-striped">
                            <thead>
                            <tr>
                                <th>ID</th>
                                <th>姓名</th>
                                <th>1男2女</th>
                                <th>出生日期</th>
                                <th>户口所在地</th>
                                <th>现居住地</th>
                                <th>工作开始年份</th>
                                <th>状态</th>
                                <th>公开状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <form id="mini_list">
                                <tbody>
                                <?php foreach($list as $val){ ?>
                                <tr>
                                    <td><?= $val->user_id ?></td>
                                    <td><?=$val->name?></td>
                                    <td><?=$val->sex == 1 ? '男' : '女'?></td>
                                    <td><?=$val->birthday?></td>
                                    <td><?=$val->census_register?></td>
                                    <td><?=$val->residence?></td>
                                    <td><?=$val->workingyears?></td>
                                    <td><?=empty(config('jobsetting.status')[$val->status]) ? '未填写' : config('jobsetting.status')[$val->status]?></td>
                                    <td><?=$val->open_status == 1 ? '只有申请企业查看' : '所有企业可查看' ?></td>
                                    <td>
                                        <div class="hidden-sm hidden-xs btn-group">
                                            <a title="查看简历" mini="load" w="90%" h="90%" href="<?=url('job.resume/show','user_id='.$val->user_id)?>" class="btn btn-xs btn-info"><i class=" fa fa-edit bigger-120"></i>查看简历</a>
                                        </div>
                                    </td>
                                </tr>
                                <?php } ?>
                                </tbody>
                            </form>
                        </table>
                        <div>
                            <?php echo $page; ?>
                        </div>
                    </div><!-- /.row -->
                </div><!-- /.main-container -->
            </div>
        </div>
    </div>
</div>
